#include "ModuleManager.h"
#include "App.h"
#include "ModuleConnection.h"
#include "ModuleInfomation.h"
#include "ModuleAppmanager.h"
#include "ModuleTaskmanager.h"
namespace Gnodroid
{

    ModuleManager::ModuleManager() :
        Glib::ObjectBase("gnd_module_manager")
    {}

    void ModuleManager::start()
    {
        //创建并启动模块
        Module* moduleConnection = new ModuleConnection();
        Module* moduleInfomation = new ModuleInfomation();
        Module* moduleAppmanager = new ModuleAppmanager();
        Module* moduleTaskmanager = new ModuleTaskmanager();

        moduleConnection->start();
        moduleInfomation->start();
        moduleAppmanager->start();
        moduleTaskmanager->start();
    }

    Module*
    ModuleManager::getModule(ModuleId mid)
    {
        return nullptr;
    }

    void ModuleManager::stop()
    {}

}
